﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security
{
    public interface IUserInfo
    {
        string UserId { get; }

        string[] Roles { get; }

        string UserName { get; }

        bool HasPermission(string permission);

        bool IsInRole(string role);

    }
}
